package cn.tramy.pinxian.common.exception

/**
 * Created by yanjunhua on 16/5/30.
 */
open class BaseException constructor(val code: String, message: String) : RuntimeException(message) {

    var data: Any? = null
        protected set


    constructor(code: String, message: String = code, data: Any? = null) : this(code, message) {
        this.data = data
    }
}
